package com.nextplus.housetolet.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.nextplus.common.domain.SuperEntity;

/**
 * 账单
 * 
 * @author didi
 *
 * 创建时间：2013-1-3
 *
 */
@Entity
@Table(name = "payment")
public class Payment extends SuperEntity {

	private Date startDate;				// 起租日期
	private Date endDate;				// 结束日期
	private Date createDate;			// 账单创建日期
	
	private Double startElect;			// 起租电表读数
	private Double endElect;			// 结束电表读数
	private Double electPay;			// 电费
	
	private Double startWater;			// 起租水表读数
	private Double endWater;			// 结束水表读数
	private Double waterPay;			// 水费
	
	private Boolean hasNet;				// 是否使用网络
	private Double netPay;				// 网络使用费
	
	private Double basePayment;			// 基础房租
	
	private Double adjustSum;			// 调整费用 
	private String adjustInfo;			// 调整费用说明
	
	private Double sumPay;				// 总费用
	
	@ManyToOne
	@JoinColumn(name = "room_id")
	private Room room;
	@ManyToOne
	@JoinColumn(name="user_id")
	private User user;

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Double getStartElect() {
		return startElect;
	}

	public void setStartElect(Double startElect) {
		this.startElect = startElect;
	}

	public Double getEndElect() {
		return endElect;
	}

	public void setEndElect(Double endElect) {
		this.endElect = endElect;
	}

	public Double getElectPay() {
		return electPay;
	}

	public void setElectPay(Double electPay) {
		this.electPay = electPay;
	}

	public Double getStartWater() {
		return startWater;
	}

	public void setStartWater(Double startWater) {
		this.startWater = startWater;
	}

	public Double getEndWater() {
		return endWater;
	}

	public void setEndWater(Double endWater) {
		this.endWater = endWater;
	}

	public Double getWaterPay() {
		return waterPay;
	}

	public void setWaterPay(Double waterPay) {
		this.waterPay = waterPay;
	}

	public Boolean getHasNet() {
		return hasNet;
	}

	public void setHasNet(Boolean hasNet) {
		this.hasNet = hasNet;
	}

	public Double getNetPay() {
		return netPay;
	}

	public void setNetPay(Double netPay) {
		this.netPay = netPay;
	}

	public Double getBasePayment() {
		return basePayment;
	}

	public void setBasePayment(Double basePayment) {
		this.basePayment = basePayment;
	}

	public Double getAdjustSum() {
		return adjustSum;
	}

	public void setAdjustSum(Double adjustSum) {
		this.adjustSum = adjustSum;
	}

	public String getAdjustInfo() {
		return adjustInfo;
	}

	public void setAdjustInfo(String adjustInfo) {
		this.adjustInfo = adjustInfo;
	}

	public Double getSumPay() {
		return sumPay;
	}

	public void setSumPay(Double sumPay) {
		this.sumPay = sumPay;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
